local tuanshan_skill = fk.CreateSkill {

  name = "#tuanshan_skill",
  attached_equip = "tuanshan",
  tags = {  },

}



tuanshan_skill:addEffect(fk.Damage, {
  name = "#tuanshan_skill",
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(tuanshan_skill.name) and data.card and data.card.trueName == "slash" and
        #data.to.player_cards[Player.Equip] > 0
        and not player:isKongcheng()
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:broadcastPlaySound(Thbattle_path .. "audio/card/male/tuanshan" .. math.random(2))
    local throwCard_player = room:askForCardChosen(player, player, "h", tuanshan_skill.name, "#tuanshan-throwCard")
    room:throwCard(throwCard_player, tuanshan_skill.name, player, player)
    local throwCard_to = room:askForCardChosen(player, data.to, "e", tuanshan_skill.name, "#tuanshan-throwCard")
    room:throwCard(throwCard_to, tuanshan_skill.name, data.to, player)
  end
})

return tuanshan_skill